﻿#ifndef MOVECELL_H
#define MOVECELL_H


#include <QUndoCommand>
#include <QPointF>
#include <QGraphicsRectItem>

class JistDocument;
#include "ImageItem.h";
class MoveCell : public QUndoCommand
{
public:
    MoveCell(JistDocument *document,
                  QList<QGraphicsItem *> &cells,
                  const QPointF &oldPos);

    void undo();
    void redo();

private:
    JistDocument *m_document;
    QList<QGraphicsItem *> m_Cells;
    QList<QPointF> m_curPoint;
    QPointF mOldPos;
    QPointF mNewPos;
};



#endif // MOVECELL_H

